#!/bin/ksh

PATH=/home/srini/TIDES/eval/script/:$PATH

if (($#==0)) 
   then print score.sh reffile testfile [ -c ]
   exit
 fi


ref=$1
test=$2
langs=arabic
langt=english
capitalization="$3" 

convert2sgm $test tst $langs $langt > /tmp/test.$$.sgm
convert2sgm $ref ref $langs $langt > /tmp/ref.$$.sgm
convert2sgm $test src $langs $langt > /tmp/src.$$.sgm

mteval-v12.pl -r /tmp/ref.$$.sgm -s /tmp/src.$$.sgm -t /tmp/test.$$.sgm ${capitalization}
